package com.houtai.edufree.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 
 * </p>
 *
 * @author xst
 * @since 2022-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StuVideo对象", description="")
public class StuVideo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视频ID")
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "id is ull")
    private Integer id;

    @ApiModelProperty(value = "视频名称")
    @NotBlank(message = "title is null")
    @Size(max = 30,message = "b标题长度过长")
    private String title;

    @ApiModelProperty(value = "视频云端ID")
    @NotBlank(message = "SourceId is null")
    private String videoSourceId;

    @ApiModelProperty(value = "播放次数")
    @Min(value = 0,message = "播放次数小于0")
    private Long playcount;

    @ApiModelProperty(value = "封面")
    @NotBlank(message = "cover is null")
    private String cover;

    @ApiModelProperty(value = "视频大小")
    @Min(value = 0,message = "视频大小不正确")
    private Long size;

    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    private Date gmtModified;


}
